package com.jmpt.fangbohui.ui.holder;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.jmpt.fangbohui.R;
import com.jmpt.fangbohui.ui.base.BaseViewHolder;
import com.jmpt.fangbohui.utils.UIUtils;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;

public class SearchHistoryItemHolder extends BaseViewHolder<String> {
	
	@ViewInject(R.id.tv_search_key)
	private TextView tv;

	public SearchHistoryItemHolder(Context context) {
		super(context);
	}

	@Override
	protected View initView() {
		View view = View.inflate(UIUtils.getContext(), R.layout.item_search, null);
		
		ViewUtils.inject(this, view);
		
		return view;
	}

	@Override
	protected void refreshView(String data) {
		tv.setText(data);
	}

}
